<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link id="favicon" href="/jxgl/favicon.ico" rel="icon" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>学员个人主页</title>
<link rel="stylesheet" href="/jxgl/css/all.css" />
<link rel="stylesheet" href="/jxgl/css/login.css" />
<link rel="stylesheet" href="/jxgl/css/list.css" />
<script type="text/javascript" src="/jxgl/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
	function gotoPage(pageid){
		$('#page_index_id').val(pageid);		
		$('#pageform').submit();
	}
	$(document).ready(function(){
		$("#region").change(function(){
			$("#qform").submit();
		});
	});
</script>
</head>
<body id="lg_body">
<div id="lg_wrap">
<div id="ln_header">
			<div class="header_link"> 
						<a target="_blank" href="http://www.changdajx.cn/%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC/"
						class="help_icon">问题咨询</a>&nbsp;&nbsp; 
						<a target="_blank"
						href="http://www.changdajx.cn"
						class="home_icon">驾校首页</a>&nbsp;&nbsp;
				</div>
		</div>
		<div class="main_link" style="width:960px;margin-top:3px;">
			<a href="/jxgl/login"><b>首页</b></a> &gt; <font color="#666666">选择教练</font>
		</div>
		<div id="ln_main" style="height:800px;width:960px;">
			<div id="left-column">
                <div class="widget-alt">
                    <div class="headline no-margin"><h4>个人工具箱</h4></div>
                        <ul class="links-list-alt" style="padding-left:0px">
                            <li><a href="/jxgl/student/showme">修改个人信息</a></li>
                            <li><a href="/jxgl/changePic.jsp">修改头像</a></li>
                            <li><a href="/jxgl/student/editPwd">登录密码</a></li>
                            <li><a href="/jxgl/student/listdriver">选择教练</a></li>
                            <li><a href="/jxgl/logout">退出登录</a></li>
                        </ul>
                </div>
            </div>
            <div id="center-column">
            <div class="headline no-margin"><h4>选择教练</h4></div>
	<s:if test="msg != null">
	<div class="notification <s:if test="msg_type == 1">success</s:if> <s:if test="msg_type == 2">error</s:if> closeable" id="notification_1" style="display: block;">
			<p><span>提示!</span> <s:property value="msg"/> <s:if test="msg_type == 2"><a href="/jxgl/viewDriver?driverid=<s:property value="driverId"/>">点击查看</a></s:if> </p></div>
	</s:if>
    <div id="dlist">
    	<div class="driver-list">
        	<div class="driver-common-title g-clear">
				<span class="left">任课老师</span>
				<div class="right">
                <form action="/jxgl/student/listdriver" id="qform" method="post">
	    			<span>片区选择
	    			<select name="region" id="region">										
										<option value="0" <s:if test="region == 0">selected</s:if>>所有</option>
										<option value="1" <s:if test="region == 1">selected</s:if>>柳市</option>
										<option value="2" <s:if test="region == 2">selected</s:if>>虹桥</option>
										<option value="3" <s:if test="region == 3">selected</s:if>>乐成</option>
										<option value="4" <s:if test="region == 4">selected</s:if>>大荆</option>
									</select>
		    			教练姓名<input type="text" name="q" id="qw" value="<s:property value="q" />" autocomplete="off" maxlength="50">
	    			</span>
 					<input type="submit" value="搜索" />
					<span class="list-title">搜索到<span><s:property value="total" /></span>位专职老师</span>
 					<div class="clear"></div>
	    		</form>
				</div>
			</div>
            <div class="clear"></div>
            <div class="list g-clear">
            	<s:iterator value="lds" id="d">
                	<div class="driver-list-item dep">
                	<div class="image">
                    	<img src="/jxgl/download.action?fileName=<s:property value="#d.avatar" />" alt="<s:property value="#d.realName" />">
                    </div>
                    <div class="intro-text">
                    	<a class="name" href="/jxgl/viewDriver?driverid=<s:property value="#d.id" />" target="_blank"><s:property value="#d.realName" /></a>
                        <span class="title1">专职老师</span>
                        <span class="title1"><s:if test="#d.driverType == 0"></s:if>手动档<s:else>自动档</s:else></span>
                        <span class="title1"><s:property value="#d.carCode" /></span>
                        <p class="gray star">
							<a href="/jxgl/viewDriver?driverid=<s:property value="#d.id" />" target="_blank" class="nonehover">                            
                                <s:if test="1 <= #d.rate">
                                    <span class="gi2 gi-star1-little"></span>    
                                </s:if><s:else>
                                    <span class="gi2 gi-star3-little"></span>                                    	
                                </s:else>
                                                                <s:if test="2 <= #d.rate">
                                    <span class="gi2 gi-star1-little"></span>    
                                </s:if><s:else>
                                    <span class="gi2 gi-star3-little"></span>                                    	
                                </s:else>
                                                                <s:if test="3 <= #d.rate">
                                    <span class="gi2 gi-star1-little"></span>    
                                </s:if><s:else>
                                    <span class="gi2 gi-star3-little"></span>                                    	
                                </s:else>
                                                                <s:if test="4 <= #d.rate">
                                    <span class="gi2 gi-star1-little"></span>    
                                </s:if><s:else>
                                    <span class="gi2 gi-star3-little"></span>                                    	
                                </s:else>
                                                                <s:if test="5 <= #d.rate">
                                    <span class="gi2 gi-star1-little"></span>    
                                </s:if><s:else>
                                    <span class="gi2 gi-star3-little"></span>                                    	
                                </s:else>
                                <span class="score"><s:property value="#d.rate" />分</span>
                            </a>
						</p>
                        <div class="good" title="test">擅长：
<s:property value="#d.note" />
</div>
                    </div>
                </div>
                </s:iterator>            	
            </div>          
        </div>
    </div>
<div class="pagination">
<form action="/jxgl/student/listdriver" id="pageform" method="post">
<input type="hidden" name="q" value="<s:property value="q" />" />
<input type="hidden" name="region" value="<s:property value="region" />" />
<input type="hidden" id="page_index_id" name="page_index" value="<s:property value="page_index" />" />
<a href="javascript:gotoPage(1)"><li>&laquo;</li></a>
<a href="javascript:gotoPage(<s:property value="page_index - 1" />)"><li>&#8249;</li></a>

<s:if test="page_index != 1">
<a href="javascript:gotoPage(<s:property value="page_index - 1" />)"><li><s:property value="page_index - 1" /></li></a>
</s:if>
<a href="javascript:void();" class="cur"><li><s:property value="page_index" /></li></a>
<s:if test="page_index != page_count">
<a href="javascript:gotoPage(<s:property value="page_index + 1" />)"><li><s:property value="page_index + 1" /></li></a>
</s:if>

<a href="javascript:gotoPage(<s:property value="page_index + 1" />)"><li>&#8250;</li></a>
<a href="javascript:gotoPage(<s:property value="page_count" />)"><li>&raquo;</li></a>
<form>
</div>
</div>

        </div>
</div>
</body>
</html>